// LOGIN_URL
export interface loginForm {
  username: string
  password: string
}

export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface loginResponseData extends ResponseData {
  data: string
}

// USERINFO_URL

interface UserInfo {
  routes: string[]
  buttons: string[]
  roles: string[]
  name: string
  avatar: string
}
export interface userInfoResponseData extends ResponseData {
  data: UserInfo
}

export type logoutResponseData = ResponseData
